
/*Create a CStudent class that has the following data members:
-	A dynamically allocated first name
-	A dynamically allocated last name
-	An int for the number of grades to record
-	A dynamically allocated array of floats for their grade
*/

#ifndef lab3
#define lab3
#include <iostream>


using namespace std;

class Student
{
	/*Node(const char* Fname, const char* Lname, int grades, float *fgrade,Node* _pNext =NULL)
	:m_FirstName(Fname), m_LasName(Lname), m_grades(grades),m_fgrades(fgrade),pNext(_pNext)*/

	char*	m_FirstName;
	char*	m_LastName;
	int		m_numGrades;
	float	*m_fgrades;

	Student( void );

public:

	Student( Student & student );

	Student( char *pFN,  char *pLN, int numGrades, const float *pGrades );
	
	~Student( void );
	
	const char* GetFirstName() const 
	{ return  m_FirstName;}

	const char* GetLastNAme() const 
	{ return  m_LastName;}

	int  GetGrade() const 
	{ return m_numGrades;}

	int   GetNumGrade()  
	{ return m_numGrades;}

	void display( void ); 

	float GetAverageGrade( void );

	Student & operator = ( Student &rhs );
};


#endif /*lab3*/